export default {
	state: {
		goods:uni.getStorageSync('goods')||[],
		defaultAddress:uni.getStorageSync('defaultAddress')||{}
	},
	mutations: {
		giveGoods(state,val){
			state.goods = val
			uni.setStorageSync('goods',val)
		},
		setAddress(state,val){
			state.defaultAddress = val
			uni.setStorageSync('defaultAddress',val)
		}
	},
	actions: {
	}
}